package com.cdu.pojo.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.util.List;

@Data
public class OrderCreateDTO {
    private Integer userId;
    private String recvName;
    @NotBlank(message = "收件人电话不能为空")
    private String recvPhone;
    @NotBlank(message = "收货省不能为空")
    private String recvProvince;
    @NotBlank(message = "收货市不能为空")
    private String recvCity;
    private String recvArea;
    private String recvAddress;
    private Integer status;
    @NotNull(message = "总价不能为空")
    private BigDecimal totalPrice;
    @NotNull(message = "地址id不能为空")
    private Integer addressId;
}